/**
 * 
 */
package remato.client.view.requirementstable;

import remato.client.controller.Registry;
import remato.client.controller.RequirementPlugin;
import remato.client.model.ClientModelItem;
import remato.client.view.util.ViewerAction;

public class OpenTableEditorAction extends ViewerAction {

	private ClientModelItem item;
	
	public OpenTableEditorAction(ClientModelItem item) {
		super("Show table-editor");
		this.item = item;
	}

	@Override
	public void run() {
		RequirementPlugin.getInstance().getEditorWindowManager().startEditorPart(Registry.TABLE_EDITOR_ID, item);
		super.run();
	}

}
